





<?php


$responce->page = $page;
$responce->total = $total_pages;
$responce->records = $count;

$i=0;
foreach($researchs as $row) {
$responce->rows[$i]['id']=$row["id"];
$responce->rows[$i]['cell']=array($row->Species["species"],"<img src='/images/wiki.png' width='16px'>");

//,$row->Observationdepth->Observation["location"],$row->Observationdepth["observationdepth"]." ".$row->Observationdepth->Unit["unit"] ,$row["quantity"],$row->Observationdepth->Observation["observationdate"],$row->Observationdepth->Observation->Research->Entity["firstname"],$row["tag"]);
$i++;
}


echo json_encode($responce);
?>

